FROM weblogic-base:7

RUN yum install -y python-setuptools && easy_install pip && pip install supervisor 

RUN /u01/Oracle/Middleware/wlserver_10.3/server/bin/setWLSEnv.sh

ENV DOMAIN_NAME mydomain
ENV PASS_WORD 12345678
ENV ADMIN_PORT 7001
ENV ADMIN_SSL_PORT 7002
ENV APP_NANE xxx
ENV APP_PKG_FILE xxx.war
ENV APP_PKG_LOCATION /u01/Oralce

ENV PATH /u01/Oracle/Middleware/wlserver_10.3/common/bin:$PATH

ADD ./configscript-temp.txt / 
ADD ./run.sh /
ADD ./supervisord.conf /etc/supervisord.conf 
ADD ./deploy.py / 
ADD ./init-jdbcSR.py / 
RUN chmod +x /run.sh

ENTRYPOINT ["/usr/bin/supervisord"]
CMD ["-c", "/etc/supervisord.conf"]

#CMD ['supervisord']
